- submit_btn_css ||= 'btn btn-link btn-remove'
- if defined?(token)
  - path = oauth_authorized_application_path(0, token_id: token)
- else
  - path = oauth_authorized_application_path(application)
  
= form_tag path do
  %input{:name => "_method", :type => "hidden", :value => "delete"}/
  = submit_tag '撤销', onclick: "return confirm('确定要继续么？')", class: 'btn btn-link btn-remove btn-sm'
